package cn.edu.scau.cmi.huangxiaodong.mybatis.entity;

import javafx.beans.property.SimpleLongProperty;
import javafx.beans.property.SimpleStringProperty;

public class TeacherEntity {
	 private final SimpleLongProperty id = new SimpleLongProperty();
		
	 private final SimpleStringProperty name = new SimpleStringProperty("");
	
	 public long getId() {
		return id.get();
	}

    public SimpleLongProperty idProperty() {
        return id;
    }
    
	public void setId(long id) {
		this.id.set(id);
	}
	
	public String getName() {
		return name.get();
	}
	
	 public SimpleStringProperty nameProperty() {
	        return name;
	   }
	
	public void setName(String name) {
		this.name.set( name);
	}

	@Override
	public String toString() {
		return "Teacher [id=" + id + ", name=" + name + "]";
	}
	
}
